package com.benefm.multipar.pad.dashboard;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.benefm.multipar.pad.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.clj.fastble.data.BleDevice;

import java.util.List;

public class BleDeviceListAdapter extends BaseQuickAdapter<BleDevice, BaseViewHolder> {

    public BleDeviceListAdapter(@Nullable List<BleDevice> data) {
        super(R.layout.item_online_device, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, BleDevice bleDevice) {
        holder.setText(R.id.textName, bleDevice.getName());
        holder.setText(R.id.textSn, bleDevice.getMac());
    }
}
